<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<th:block th:include="include :: header('在制品hold状态每卡详情')" />
</head>
<body class="gray-bg">
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-bordered" style="white-space: nowrap;">
				<table id="bootstrap-table"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
		var wipLotHoldStaList = [[${wipLotHoldStaList}]];

		var columns = [
			{
				field: 'NO',
				align : 'center',
				title: 'NO',
				formatter: function (value, row, index) {
					return $.table.serialNumber(index);
				}
			},
			{
				field: 'lotId',
				align : 'center',
				title: '卡号'
			},
			{
				field: 'partName',
				align : 'center',
				title: '产品名称'
			},
			{
				field: 'mainQty',
				align : 'center',
				title: '片数'
			},
			{
				field: 'stepName',
				align : 'center',
				title: '工步名称'
			},
			{
				field: 'stageId',
				align : 'center',
				title: '工段名称'
			},
			{
				field: 'stageDsc',
				align : 'center',
				title: '工段描述'
			},
			{
				field: 'state',
				align : 'center',
				title: '当前状态'
			},
			{
				field: 'holdCode',
				align : 'center',
				title: '暂停编码'
			},
			{
				field: 'holdUser',
				align : 'center',
				title: '暂停用户'
			},
			{
				field: 'holdHrs',
				align : 'center',
				title: '暂停时长(小时)'
			},
			{
				field: 'holdReason',
				align : 'center',
				title: '暂停原因'
			}
		];

		var options = {
			showSearch: false,
			showRefresh: false,
			showToggle: false,
			showColumns: false,
			pagination: false,
			modalName: "在制品hold状态每卡详情",
			columns: columns,
			data: wipLotHoldStaList
		};

        $(function() {
            $.table.init(options);
        });
    </script>
</body>
</html>